<div class='p-w l-lr'><div class='p-i-w'>
	<div class='l-box l-l'>
		<div class='sb-w red'>
			<h1 class='sb-title'><span>商品信息</span></h1>			
			<div class='sb-ci-w gc-g-w'>
				<?php 
					$commentRateArr = GoodsComment::radeArrayData($type,$model->id);
					if (in_array($type, array('Hotel','Scenic'))) {
                		$price = intval(CHtml::value($model, 'minObj.priceInfo.price_dealer'));
					}else {
                		$price = intval(CHtml::value($model, 'priceInfo.price_dealer'));
					}
		       ?>
				<!-- 200x130 -->
				<div class='gc-g-img-w'><a href='<?php echo $model->vurl?>'><?php echo $model->img(130,130);?></a></div>
				<div class='gc-g-desc-w font-body'>
					<p>
						<span class='fc-666'>商品名称：</span>
						<a class='a-blue' href='<?php echo $model->vurl?>'><?php echo $model->fullTitle?></a>
					</p>
					<p>
						<span class='fc-666'>销售价：</span><span class='fc-red bh-strong'>￥<?php echo $price?></span>
					</p>
					<p>
						<span class='fc-666'>满意度：</span><?php echo $commentRateArr['goodsRateModulus']+$commentRateArr['centerRateModulus']?>%
					</p>
					<p><span class='fc-666'>评论数：</span><?php echo $commentRateArr['count']?>条</p>
				</div>
			</div>
		</div>
	</div>
	
	<div class='l-box l-r'>
		<div class='box gc-w'>
			<ul class='gc-nav' id='trigger-comment'>
				<li class='hover' url='<?php echo Yii::app()->controller->createUrl('commentPartial',array('type'=>$type,'id'=>$model->id))?>'><a href='javascript:void(0)' >全部点评(<?php echo $commentRateArr['count']?>)</a></li>
				<li class='' url='<?php echo Yii::app()->controller->createUrl('commentPartial',array('type'=>$type,'id'=>$model->id,'rate'=>1))?>'><a href='javascript:void(0)'>好评(<?php echo $commentRateArr['goodRate']?>)</a></li>
				<li class='' url='<?php echo Yii::app()->controller->createUrl('commentPartial',array('type'=>$type,'id'=>$model->id,'rate'=>2))?>'><a href='javascript:void(0)'>中评(<?php echo $commentRateArr['centerRate']?>)</a></li>
				<li class='' url='<?php echo Yii::app()->controller->createUrl('commentPartial',array('type'=>$type,'id'=>$model->id,'rate'=>3))?>'><a href='javascript:void(0)'>差评(<?php echo $commentRateArr['lessRate']?>)</a></li>
			</ul>
			<div class='bh-clear'></div>
			<div id='comment-content'>
					
			</div>
		</div>
	</div>
	<div class='bh-clear'></div>
</div></div>
<script>
$().ready(function() {
	$.tabable({
		triggers: '#trigger-comment > li',
		contents: '#comment-content',
		hoverClass: 'hover'
	});
})
</script>